package com.appkubes.fintech.restful.application.file.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(description = "身份证认证VO信息")
public class IDCardVO {

    @NotNull(message = "用户Key不能为空")
    @NotEmpty(message = "用户Key不能为空")
    String userKey;
    @ApiModelProperty("back:背面,front：正面")
    @Pattern(regexp = "back|front", message = "正反面属性错误")
    String viewType;

}
